package com.zhkj.framework.mapper;

import com.zhkj.framework.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Created by Mybatis Generator 2018/10/12
*/
public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //查询所有用户
    List<User> selectAll();

    //按电话号码查找用户
    User selectbyPhone(@Param("phone") String phone);

    int deleteByName(@Param("name") String name);

}